package com.appkubes.mall.admin.application.system.ad.model;

import com.appkubes.mall.core.entity.MallAd;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class AdEditResult {

    private MallAd info;

    private List<LinkChoose> linkChoose;

    private Map<String,String> adType;

    public AdEditResult(MallAd info){
        this.setInfo(info);
        List<LinkChoose> list = new ArrayList<>();
        list.add(new LinkChoose("外部连接","url"));
        list.add(new LinkChoose("商品详情","product"));
        list.add(new LinkChoose("经纪人入驻","business-apply"));
        this.setAdType(AdType.data());
        this.setLinkChoose(list);
    }
}
